package com.wyclabs.cardmaker.cells;
import com.wyclabs.cardmaker.constants.CardLevel;

/**
 * @author TylerW
 * @date 06/22/21 5:57 PM
 */
public class LevelCell extends EditingCell {

    @Override
    public void updateItem(String item, boolean empty) {
        super.updateItem(item, empty);
        if (!empty) {
            if (item.equals(CardLevel.A.getType())) {
                setStyle("-fx-text-fill: #070707");
            } else if (item.equals(CardLevel.B.getType())) {
                setStyle("-fx-text-fill: #0081ff");
            } else if (item.equals(CardLevel.C.getType())) {
                setStyle("-fx-text-fill: #ff00d7");
            } else if  (item.equals(CardLevel.D.getType())) {
                setStyle("-fx-text-fill: #ffb900");
            }
        }
    }


}
